<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link href="https://cdn.bootcss.com/animate.css/3.5.2/animate.css" rel="stylesheet">
</head>
<body>
    <div id="app">
        <transition 
            name="custom-classes-transition" 
            enter-active-class="animated tada"
            leave-active-class="animated hinge"
        >
            <h1 v-if="show">{{name}}</h1>
        </transition>
        <button v-on:click="show = !show">
            Toggle
        </button>
        <!-- <button @click="handleClick"></button> -->
    </div>    
</body>
<script src="https://cdn.bootcss.com/vue/2.5.17-beta.0/vue.js"></script>
<script>
    var app = new Vue({
        el:'#app',
        data(){
            return {
                name:'ruijie',
                show:true
            }
        },
        methods:{
            handleClick(){
                this.name = this.name === 'ruijie' ? 'startnet' : 'ruijie';
            }
        }
    })
</script>
</html>